Skip to main content

All Questions

1vote
4answers
413views

Preventing payment to be processed twice

I have app with paymemt/subscription service, pretty much how the payment works is: Initial payment User initiate payment on the web ( click on "subscribe") Back-End send init request to ...
Darlyn's user avatar
1vote
1answer
150views

Background thread processing vs queue based processing for relatively short tasks (max 30-40 seconds)

I need suggestion / recommendation on the design approaches mentioned below. UseCase: I have a usecase where a client uses my system to generate some recommendations. Now, these recommendations are ...
Passion's user avatar
0votes
1answer
240views

Is it secured to accept and execute user provided CURL commands

Assume you have to figure out a dynamic way where the user can provide an API call to hit in the backend for example, user to provide a webhook to call on his end server So, An idea for users to ...
Youans's user avatar
0votes
2answers
955views

Is MVC a sensible design choice for a CLI application?

I am working on a CLI chess game that only involves 2 human players, I decided to make it follow the MVC architecture to ensure separation of concern and to make the possibility of a GUI/web ...
Yoh's user avatar
  • 51
0votes
2answers
745views

Microservices - create post for logged in user

I am working on a small project with microservices architecture in Spring Boot. As to not make unnecessary calls to users-microservice, I have duplicated some necessary User data (id, name, summary, ...
don's user avatar
0votes
1answer
69views

Design a non replayable endpoint for a service

I am trying something out in Springboot and stuck with a weird issue where I want to send some data from my frontend (react app) to backend (SpringBoot) and make that request non replay able by users (...
Abhijeet Shukla's user avatar
1vote
2answers
122views

Designing UI module for an application

I have an UI module that will expose only one class - UserInterface. The class will be responsible for collecting user input and providing output (command line UI style). From logical way of thinking, ...
Wiktor's user avatar
0votes
1answer
450views

How to use single Spring-Boot instance to cater to multiple environments?

We have a Spring-Boot Web application currently deployed to 7 environments (DEV, SIT, UAT, Pre-Prod, Prod, etc.). This application connects to other REST services, which has different URLs for each of ...
Smile's user avatar
1vote
1answer
610views

Pipeline design pattern and immutability

I'm developing a backend service that is supposed to process items in a pipeline-fashion. Each stage is essentially a Function<IN, OUT>. So the current stage's input is the previous stage's ...
IsaacLevon's user avatar
1vote
1answer
805views

Spring Boot/Batch: Should every Job be separate Maven module?

I'm building a backend service powered by Spring Batch which enables to define and Jobs. Currently, I have several jobs, that essentially, aren't related one to another. So, I have one application....
IsaacLevon's user avatar
2votes
1answer
894views

How to build a modular/extensible Spring Boot application?

I'm developing a Spring boot / Batch application. What I'd like to do is to have a separated module for every job. This is a reasonable decision because different tasks (Spring Batch Job) have ...
IsaacLevon's user avatar
2votes
1answer
104views

Which is the better architecture to follow for API Development in Java using any RDBMS database backend?

This question is regarding the better architecture to follow for API Development in Java using any RDBMS database backend. Currently, we are using the below approach to fetch data from database and ...
Nithin's user avatar
12votes
3answers
6kviews

What's the difference between reactive programming and event driven architecture?

What's the difference between reactive programming and event driven architecture? Is reactive programming a way of implementing event driven programming?
mohsenJsh's user avatar
7votes
2answers
6kviews

Is the builder pattern appropriate to use to update Objects in a Service layer?

Currently, in our service layer, we pass an id as well as a new updated value, something akin to updatePersonName(Person person, Name name) which, in turn, calls the corresponding repository ...
Joe's user avatar
  • 405
3votes
2answers
256views

How to manage cart details across various devices

Recently I was asked in a interview to implement to e-commerce site . One of the requirement was to maintain cart details across various devices .(i.e) if user adds a book from his iPhone , and when ...
user3878073's user avatar

153050per page
close